﻿using RepositoryAndEf.Domain;
using RepositoryAndEf.Core.Data;

namespace RepositoryAndEf.Service
{
    public class OrderService : IOrderService
    {
        private IRepository<Order> _orderRepository;

        public OrderService(IRepository<Order> orderRepository)
        {
            _orderRepository = orderRepository;
        }

        public void InsertOrder(Order order)
        {
            _orderRepository.Insert(order);
        }
    }
}
